Skip to content

fix dpo with lazy_dataset#136

Merged
tastelikefeet merged 2 commits intomodelscope:mainfrom
tastelikefeet:fix/dpo_lazy_dataset
Mar 31, 2026
Merged

fix dpo with lazy_dataset#136
tastelikefeet merged 2 commits intomodelscope:mainfrom
tastelikefeet:fix/dpo_lazy_dataset

Conversation

@tastelikefeet
Copy link
Copy Markdown
Collaborator

PR type

  • Bug Fix
  • New Feature
  • Document Updates
  • More Models or Datasets Support

PR information

Write the detail information belongs to this PR.

Experiment results

Paste your experiment result here(if needed).

Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request updates the batch_encode method to support nested trajectories in both list and mapping formats, improving the handling of complex data structures. The changes include a modified _get_trajectory_keys method and a more concise encoding loop using dictionary comprehension. Feedback was provided to correct a typo in the is_columar parameter name and to simplify the trajectory detection logic by removing redundant type and truthiness checks.

@tastelikefeet tastelikefeet merged commit a89ede5 into modelscope:main Mar 31, 2026
1 of 3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants